package com.qiaoyanqing.textdemoqyq7.Adapters;

import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;
import android.support.v4.app.FragmentStatePagerAdapter;

import java.util.List;

/**
 * Created by Administrator on 2016/11/14.
 */

public class WelcomeVPAdapter extends FragmentPagerAdapter{

    private List<Fragment>mdata;
    public WelcomeVPAdapter(FragmentManager fm,List<Fragment>data) {
        super(fm);
        mdata=data;
    }

    @Override
    public Fragment getItem(int position) {
        return mdata.get(position);
    }

    @Override
    public int getCount() {
        return mdata.size();
    }
}
